package com.itcast.inner_class.anon;

public class Test {
    public static void main(String[] args) {
        // 匿名内部类
        testAnon(new Swimming() {
            @Override
            public void swim() {
                System.out.println("这啥呀都是，莫名其妙");
            }
        });
    }

    public static void testAnon(Swimming swimming) {
        swimming.swim();
    }
}
